package net.lahuobao.mall.dao.admin;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import net.lahuobao.mall.entity.admin.MallOilCardRecovery;
import net.lahuobao.mall.entity.admin.MallOilCardRecoveryUse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by clark on 2017/3/29 0028.
 * 查询油卡回收
 */

@Repository
public interface MallOilCardRecoveryMapper {

    /**
     * 查询油卡回收
     * @param mallOilCardRecovery
     * @return
     */
    List<MallOilCardRecovery> selectOilCardRecovery(MallOilCardRecovery mallOilCardRecovery, PageBounds pageBounds);

    /**
     * 批量更新
     * @param ids
     * @param state
     */
    void batchUpState(@Param("ids")List<Integer> ids, @Param("state")Integer state);

    /**
     * 查看油卡使用记录
     * @param mallOilCardRecovery
     * @param pageBounds
     * @return
     */
    List<MallOilCardRecovery> selectOilCardRecoveryByCardNo(MallOilCardRecovery mallOilCardRecovery, PageBounds pageBounds);

    /**
     * 统计油卡使用情况
     * @return
     */
    MallOilCardRecoveryUse StatisticsOilCardRecoveryUse();
}
